package com.zz.hw;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner i = new Scanner(System.in);
        int[] a = trans(i.nextLine());
        int[] b = trans(i.nextLine());
        Integer k = Integer.parseInt(i.nextLine().trim());
        System.out.println(fun(a,b,k));
    }

    private static int[] trans(String input) {
        String[] b1 = input.trim().split(" ");
        int bLength = Integer.parseInt(b1[0].trim());
        int[] b = new int[bLength];
        for (int j = 0; j < bLength; j++) {
            b[j] = Integer.parseInt(b1[j+1]);
        }
        return b;
    }

    public static int fun(int[] a, int[] b,int k){
        ArrayList<Integer> list =  new ArrayList();
        int min = 0 ;
        for (int i = 0; i < a.length; i++) {
            for (int j = 0; j < b.length; j++) {
                list.add(a[i]+b[j]);
            }
        }
        Collections.sort(list);
        for (int i = 0; i < k; i++) {
            min+=list.get(i);
        }
        return min;
    }
}
